
import { createStore } from 'vuex'
// 导入持久化插件
import persistedstate from 'vuex-persistedstate'
const store = createStore({
    state() {
        return {
            count: 0
        }
    },
    mutations: {

    },
    actions: {

    },
    getters: {

    },
    plugins: [
        persistedstate()   // 默认使用localstorage
    ]
})

export default store